import request from '@/utils/request'

// 查询收费项列表
export function listFeeItems(query) {
  return request({
    url: '/charteredBus/feeItems/list',
    method: 'get',
    params: query
  })
}

// 查询收费项详细
export function getItems(feeItemId) {
  return request({
    url: '/charteredBus/feeItems/' + feeItemId,
    method: 'get'
  })
}

// 新增收费项
export function addItems(data) {
  return request({
    url: '/charteredBus/feeItems',
    method: 'post',
    data: data
  })
}

// 修改收费项
export function updateItems(data) {
  return request({
    url: '/charteredBus/feeItems',
    method: 'put',
    data: data
  })
}

// 删除收费项
export function delItems(feeItemIds) {
  return request({
    url: '/charteredBus/feeItems/' + feeItemIds,
    method: 'delete'
  })
}

// 导出收费项
// export function exportItems(query) {
//   return request({
//     url: '/plan/items/export',
//     method: 'get',
//     params: query
//   })
// }

// 启停用
export function stopUsingEnabled(data) {
  return request({
    url: '/charteredBus/feeItems/stopUsingEnabled',
    method: 'put',
    data: data
  })
}
